package com.sg.dto.biz.pbff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffRoleRelDto
 * @使用场景
 */
@Data
public class BffRoleRelDto implements Serializable {

    /**
     * 角色人员ID
     */
    @ApiModelProperty("角色人员ID")
    private String roleMemberId;

    /**
     * 身份人员ID
     */
    @ApiModelProperty("身份人员ID")
    private String originalRoleMemberId;

    /**
     * 账号ID
     */
    @ApiModelProperty("账号ID")
    private String userId;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 身份人员编号
     */
    @ApiModelProperty("身份人员编号")
    private String roleMemberCode;

    /**
     * 职务信息展示
     */
    @ApiModelProperty("职务信息展示")
    private String positionIdName;

    /**
     * 角色ID
     */
    @ApiModelProperty("角色ID")
    private String roleId;

    /**
     * 角色名称
     */
    @ApiModelProperty("角色名称")
    private String roleName;

    /**
     * 是否失效 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否失效")
    private String relationshipValid;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffRoleRelDto that = (BffRoleRelDto) o;
        return roleMemberId == that.roleMemberId && originalRoleMemberId == that.originalRoleMemberId && userId == that.userId && userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName && roleMemberCode == that.roleMemberCode && positionIdName == that.positionIdName && roleId == that.roleId && roleName == that.roleName && relationshipValid == that.relationshipValid && subjectLifeCycle == that.subjectLifeCycle;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), roleMemberId, originalRoleMemberId, userId, userFace, idCardName, nickName, roleMemberCode, positionIdName, roleId, roleName, relationshipValid, subjectLifeCycle);
    }


}
   